package com.learn.mapper;


import com.learn.dto.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface UserMapper {

     List<User> findAll();

     User selectById(int id);

     int insert(User user);

     int update(User user);

     int delete(int id);

     List<Integer> deletes(List<Integer> ids);

     List<User> getPage(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize);


     List<User> getPageCount();

    List<User> getPageCount(String name, Short gender, String phone, String account, Short status, String deptId, LocalDateTime beginTime, LocalDateTime endTime);
}
